package edu.sctu.zcy.month201505.day20150504.polymorphic;

/**
 * Created by user24 on 2015/5/4.
 */
public class Manager extends Employee {

    double dividend;

    Manager(String name, String sex) {
        super("aa", "男");
        this.name = name;
        this.sex = sex;
    }

    void setDividend(double dividend) {
        this.dividend = dividend;
    }

    double getDividend() {
        return dividend;
    }

    double getInCome() {
        return wage + bonus + dividend;
    }
}

